﻿@using MealBooking.Core.Models.Accounts;
@model List<Account>
@{
    var accounts = Model;
    Layout = "../Shared/_Layout.cshtml";
    ViewBag.HeaderTitle = "All Users";
}
<!--Navbar-->
<div data-role="navbar" data-iconpos="left">
    @Html.Partial("_FloatRightPartial")
</div>
<!--Navbar End-->
<ul data-role="listview" data-inset="true" data-mini="true">
    @if (accounts != null && accounts.Count != 0)
    {
        <li data-role="list-divider">Accounts<span class="ui-li-count">@accounts.Count</span></li>
        foreach (var account in accounts)
        {
        <li><a href="@Url.Action("Detail", new { id = account.Id })">
            <p>
                <strong>@account.Name</strong></p>
            <p>@account.Comment</p>
        </a></li>
        }
    }
    else
    {
        <li>No Accounts yet.</li>
    }
</ul>
